package com.flin.icesilkworm.examination.bas.populator;
import java.util.Map;
import com.flin.icesilkworm.examination.gen.bas.populator.GeneratedTheBasicTeacherPopulator;
import com.flin.icesilkworm.framework.jdbc.objects.StringAttribute;
import com.flin.icesilkworm.framework.jdbc.interceptors.JdbcExampleSupport;
import com.flin.icesilkworm.framework.ui.pojo.standard.StandardUIItemForm;
import com.flin.icesilkworm.examination.bas.exp.TheBasicTeacherExample;

public class TheBasicTeacherPopulator extends GeneratedTheBasicTeacherPopulator  {


	private static TheBasicTeacherPopulator instance = new TheBasicTeacherPopulator();
	

	public static TheBasicTeacherPopulator newInstance() {
		return instance;
	}
	
	//针对每一个查询条件组装方法
	protected void loadExampleByKey(JdbcExampleSupport<?> example, String key,
			StringAttribute fieldAttr, StandardUIItemForm item) {
		
		TheBasicTeacherExample exp = (TheBasicTeacherExample)example;
		
		//
		
	}
	
	
	//条件组装后，需要进行默认判断是否需要扩展
	protected boolean defaultDealExample(TheBasicTeacherExample example,Map<String,String> additions) {
		
		
		
		return super.defaultDealExample(example,additions);//true,直接结束，不做后续的自动条件增加，false:不做直接终止
	}
	
	//遇到别名时组装方式
	public JdbcExampleSupport<?> joinExample(String key, JdbcExampleSupport<?> example,String op,Map<String,String> params) {
		
		return super.joinExample(key,example,op,params);
	}
	
	//针对每个查询条件的自定义条件
	public boolean beforeLoadExample(JdbcExampleSupport<?> example,String key, StringAttribute fieldAttr,
			String op, StandardUIItemForm item,Map<String,String> params) {
		
		return false;
	}
																																																																																																
}